//
//  LNHomeThemeHeadView.m
//  LNDevelopExample
//
//  Created by wwww on 2018/9/28.
//  Copyright © 2018年 淘发现1iOS. All rights reserved.
//

#import "LNHomeThemeHeadView.h"

@implementation LNHomeThemeHeadView

-(id)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if(self){
        [self setupUI];
    }
    return self;
}

#pragma mark - 初始化UI
-(void)setupUI{
    
    UIView *line = [[UIView alloc] init];
    line.backgroundColor = LNColorFromHexString(@"dcdcdc");
    
    [self addSubview:self.titleLabel];
    [self addSubview:line];
    
    [self.titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.top.mas_equalTo(self).offset(10);
    }];
    
    [line mas_makeConstraints:^(MASConstraintMaker *make) {
       
        
    }];
    
    
}

#pragma mark - setter and getter
-(UILabel *)titleLabel{
    if(_titleLabel == nil){
        _titleLabel = [[UILabel alloc] init];
        _titleLabel.font = [UIFont boldSystemFontOfSize:18.0f];
        _titleLabel.textColor = LNColorFromHexString(@"BFAD80");
    }
    return _titleLabel;
}
@end
